package com.lby.task;

import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;
import com.lby.dao.MyBeanDao;
import com.lby.model.ScoreDimensionConfig;

//@Component
public class CoinDailyTest {
	private final static org.slf4j.Logger logger = LoggerFactory.getLogger(CoinDailyTest.class);

	@Autowired
	private MyBeanDao myBeanDao;
	
	@Scheduled(cron="0/1 * * * * ?")
	public void run() {
		ScoreDimensionConfig map = myBeanDao.getConfigById(18L);
		logger.info(JSON.toJSONString(map));
	}
}
